import React from 'react'
import Container from 'components/Container'
import CodeDemo from 'components/CodeDemo'


const code = `
function Comp(){
    return <div>comp</div>
}
`
const description = `通用组件`

const config = {
    comp: <Comp/>,
    title:"组件展示",
    code,
    description
}

export default function Readme() {
    return (
        <Container title="说明">
            <CodeDemo {...config}></CodeDemo>
        </Container> 
    )
}


function Comp(){
    return <div>comp</div>
}